#include <iostream>
#include <stdio.h>
#include "mediator.h"

int main(int argv, char**argc)
{
    printf("************  test hello zc!!!   **************\n");
    /* add test code! */
    //客户端测试
	//创建聊天室 
	ChatGroup happyChat;
	
	//创建成员
	CommonMember member1("张三");
	DiamondMember member2("李四");
	
	//注册 
	happyChat.registerMember(&member1);
	happyChat.registerMember(&member2);
	
	//发送信息
	member1.sendText("李四","李四，你好！");
	member2.sendText("张三","张三，你好！");
	member1.sendText("李四","今天天气很不错");
	member1.sendImage("李四","好天气");
	member2.sendImage("张三","一个很大的太阳");
	member2.sendImage("张三","太阳");

    return 0;
}
